package com.itheima.test04;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/*
题目四：
	1. 定义测试类，编写main()方法
	2. 读取题目三的student.txt文件，一次读取一个字符，显示到控制台。
 */
public class Test04 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("D:\\IdeaProjects\\studentManagerSystem\\homework0917\\student.txt");
//        FileOutputStream fos = new FileOutputStream("D:\\IdeaProjects\\studentManagerSystem\\homework0917\\student.txt");

        int i;
        while ((i=fis.read()) != -1){
            System.out.print((char)i);
        }
        fis.close();
    }
}
